import java.net.*;
import java.io.*;
import java.util.Scanner;

public class DownloadingHTMLPage {
	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(System.in);
		String link = input.next();
		try
		{
		URL tempUrl = new URL("http://" + link +"/");
		InputStream inStr = tempUrl.openConnection().getInputStream();
		BufferedInputStream bins = new BufferedInputStream(inStr);
		FileOutputStream fostreame = new FileOutputStream( link + ".html");
		int c;
		while((c= bins.read())!=-1)
		{
		fostreame.write(c);		}
		fostreame.close();
		bins.close();
		inStr.close();

		}
		catch (Exception e)
		{
		e.printStackTrace();
		}
	}
}
